package com.treasure.mall.zbq.common.ienum.log;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.treasure.mall.zbq.common.ienum.base.CodeDescCommonEnum;

/**
 * @author allan
 * @date 2019-10-18
 */
public interface LogType {
    /**
     * 用户配额日志
     */
    @JsonFormat(shape = JsonFormat.Shape.OBJECT)
    enum InOrOut implements CodeDescCommonEnum {
        ADD(0, "增加"),
        MINUS(1, "减少");

        private Integer code;
        private String desc;

        InOrOut(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}
